#ifndef __TASK_QUEUE__
#define __TASK_QUEUE__
#include <47func.h>
typedef struct task_s {
    int netfd;//任务的内容是一个连接
    struct task_s *pNext;
}task_t;
typedef struct taskQueue_s {
    task_t * pFront;
    task_t * pRear;
    int queueSize;
    pthread_mutex_t mutex;
    pthread_cond_t cond;
} taskQueue_t;
int taskEnqueue(taskQueue_t *pQueue,int netfd);
int taskDequeue(taskQueue_t *pQueue);
#endif
